package org.smart.framework;

import freemarker.ext.servlet.FreemarkerServlet;

import javax.servlet.annotation.WebInitParam;
import javax.servlet.annotation.WebServlet;

/**
 * Created by IntelliJ IDEA.
 *
 * @Auther Uncle_Z
 * @date 2017/8/18 18:10
 * @Email:2545375@qq.com
 * @since 1.0
 * To change this template use File | Settings | File Templates.
 */

@WebServlet(
        urlPatterns = {"*.ftl"},
        loadOnStartup = 0,
        name = "TemplateServlet",
        displayName = "TemplateServlet",
        initParams = {
                @WebInitParam(name="TemplatePath",value = "classpath:/views/"),
                @WebInitParam(name="NoCache",value = "true"),
                @WebInitParam(name="ContentType",value = "text/html; charset=UTF-8"),
                @WebInitParam(name = "template_update_delay", value = "0"), // 开发环境中可设置为0
                @WebInitParam(name = "default_encoding", value = "UTF-8"),
                @WebInitParam(name = "number_format", value = "0.##########")
        }

)
public class TemplateServlet extends FreemarkerServlet {
}
